package blazeConnection
{
	import blazeConnection.BlazeRequest;
	import mx.logging.ILogger;
	import mx.logging.Log;
	
	/**
	 * This class is used for a collection of BlazeRequest object
	 */
	public class BlazeRequestCollection
	{
		private var _collection:Array = new Array();
		private var logger:ILogger = Log.getLogger("blazeConnection.BlazeRequestCollection");    
		
		/**
		 * Initializes a new instance of the BlazeRequestCollection class.
		 */
		public function BlazeRequestCollection()
		{

		}
		
		/**
		 * Adds the items of BlazeRequest object in collection
		 * 
		 * @param BlazeRequest
		 */
		public function set addItem(_br:BlazeRequest):void {
			_collection.push(_br);
		}
		
		/**
		 * Gets the value associated of BlazeRequest object in collection
		 * 
		 * @param	index
		 * @return 	BlazeRequest
		 */
		public function getCollection(n:int):BlazeRequest {
			return _collection[n];
		}	
		
		/**
		 * Gets the number of BlazeRequest object in collection
		 */
		public function get length():int {
			return _collection.length;
		}
	}
}